package com.ark.common.mybatis.permission.expression;

import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.operators.conditional.AndExpression;

/**
 * 支持And条件值两边添加括号
 *
 * @author MR.Liu
 */
public class AndExpressionX extends AndExpression {
    public AndExpressionX() {
        super();
    }

    public AndExpressionX(Expression leftExpression, Expression rightExpression) {
        super(leftExpression, rightExpression);
    }

    @Override
    public String toString() {
        return "(" + super.toString() + ")";
    }
}
